<admintpl file="header" />
</head>
<style>

</style>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">考勤修补</a></li>
		</ul>
			<div class="row-fluid">
				<div class="span9">
					<form action="">
						<table class="table table-bordered">
							<tr><td>家宴</td></tr>
							<tr>
								<th>日期</th>
								<td>
									<input type="text"  name='day' class="js-date" value="" style="width: 80px;" autocomplete="off">
								</td>
							</tr>
							<tr>
								<th>说明</th>
								<td>
									<ul>
										<li>只针对当天有打卡记录并且无任何申请记录的员工生效</li>
									</ul>
								</td>
							</tr>
							<tr>
								<th>操作</th>
								<td>
									<a href="{:U('re_jiayan')}" onclick="return false;" class="btn btn-primary btn-small btn_repair" >提交</a>
								</td>
							</tr>
						</table>
					</form>
					
					<form action="">
						<table class="table table-bordered">
							<tr><td>三八妇女节</td></tr>
							<tr>
								<th>日期</th>
								<td>
									<input type="text"  name='day' class="js-date" value="" style="width: 80px;" autocomplete="off">
								</td>
							</tr>
							<tr>
								<th>说明</th>
								<td>
									<ul>
										<li>只针对女性员工生效</li>
										<li>当天有打卡记录是在13点-18点范围内的，给予下班卡</li>
										<li>如果当天的假期申请截止时间是在12点前的，给予13点的上班卡，18点的下班卡</li>
										<li>如果当天的假期申请截止时间是在13:00-18:00之间的，取截止时间为上班卡，5小时的假期时间-申请分钟数 =下班卡</li>
									</ul>
								</td>
							</tr>
							<tr>
								<th>操作</th>
								<td>
									<a href="{:U('re_sanba')}" class="btn btn-primary btn-small btn_repair" >提交</a>
								</td>
							</tr>
						</table>
					</form>
				</div>
				<div class="span1"><textarea name="" id="rundetial" style="display:block;" cols="30" rows="10"></textarea></div>
			</div>
			<div class="form-actions">
				<a class="btn btn-primary" id='btn_repair' >提交</a>
			</div>
	</div>

	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript">
	var _rundetial = $('#rundetial');
	
	$('.btn_repair').click(function(){
		var _this = $(this);
		var _form = _this.parents('form')
		var _day = _form.find("input[name='day']").val();
		var _data_obj = _form.serializeArray();
		var _href = _this.attr('href')
		console.log(_day)
		if (_day == ''){
			alert('请设置日期');
			return false;			
		}
		
		_rundetial.prepend("开始处理,请等待..."+"\n");
		$.ajax({
			url:_href,
			data:_data_obj,
			type:'post',
			success:function(ret){
				if (ret){
					_rundetial.empty().prepend(ret.info+"\n");
				}
			}
		})
		return false;
	})
	
	
		

	 
	    
	 </script>
</body>
</html>